import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  // 删除岗位
  deleteById: (query) => api.post(`${config.interfaces.type5}portfolio-server/station/delete/${query}`),
  // 新增编辑岗位
  saveTable: (query) => api.post(`${config.interfaces.type5}portfolio-server/station/save`, query),

  // 获取岗位权限下拉-暂未使用
  authority: (query) => api.get(`${config.interfaces.type5}portfolio-server/station/authority`, query),
  // 获取岗位列表
  Search: (query) => api.get(`${config.interfaces.type5}portfolio-server/station/condition`, query),
  // 关联用户下拉数据
  SearchUser: (query) => api.get(`${config.interfaces.type5}portfolio-server/user/findAll`, query),
};
